home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-20 | 819 b | 39 lines | [TEXT/MPS ] |
- # SSDecompile
- #
- # This uses the SendAE tool and the ScriptServer application to
- # decompile AppleScript files into text files.
- #
- # Written by Ult Mundane & Jon Pugh
- #
- # Option -s: Launch ScriptServer before trying to send Apple events to it
- #
- # {1} is the script to decompile
- # {2} is the output text file
-
- Loop
- If "{1}" == ""
- Break
- Else If "{1}" == "-s"
- Set lLaunchScriptServer TRUE
- Else If "{lSource}" == ""
- Set lSource "{1}"
- Set lOrigSource "{lSource}"
- Else If "{lTarget}" == ""
- Set lTarget "{1}"
- Else
- Echo "### SSCompile - Too many parameters"
- Exit
- End
- Shift
- End
-
- If {lLaunchScriptServer} == TRUE
- ScriptServer
- End
-
- sendAE -e JonSDcmp -t ScriptServer -timeout 18000 -----alis {1} -"to alis" {2}
- If !"`Exists -q "{lTarget}"`"
- Echo "### SSDecompile - Error compiling ∂"{lOrigSource}∂"."
- End
-
-